package com.boxin.ims.modules.wechat.activity;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.boxin.ims.modules.wechat.entity.LotteryRecord;
import com.boxin.ims.modules.wechat.entity.Questionnaire;
import com.boxin.ims.modules.wechat.service.QuestionService;

@Service
public class AnswerRaceActivityProcessor extends ActivityProcessor {
	
	@Autowired
	private QuestionService questionService;
	
	
	
	public void process() {
		createLotteryRecord();
	}



	@Override
	public LotteryRecord answerProcess() {
		Questionnaire questionnaire= (Questionnaire) param.get("questionnaire");
		return createLotteryRecordByAnswer(id,questionnaire.getId());
	}

}
